import {createRouter, createWebHashHistory} from "vue-router";

const routes = [
    {
        path: '/', 
        component: () => import('@/pages/home/IndexPage'),
        children: [
            {
                path: '/yian',
                component: () => import('@/pages/doctor/YiAnSearch'),
                meta: { requiresAuth: false },
            },
            {
                path: '/yian/:id',
                component: () => import('@/pages/doctor/YiAnDetail'),
                meta: { requiresAuth: false },
            },
            {
                path: '/zizhen', 
                component: () => import('@/pages/doctor/ZiZhengSystem')
            }
        ]
    },

]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router